<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<meta name="apple-mobile-web-app-status-bar-style" content="wrw" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="format-detection" content="telephone=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="${ctxStatic}/member/themes/expand/css/user.css?v=11">
		<script type="text/javascript" src="${ctxStatic}/member/themes/expand/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="${ctxStatic}/member/themes/expand/js/jQuery.js"></script>			
	</head>
<body>
<div class="body">
	<div class="backg" style="padding-bottom: 50px;">
		<div id="city">
    		<p class="backp">积分礼品列表，按规则达到积分即可兑换</p>
			<ul class="csList">	
				<li style="width: 100%;">
					<span style="font-size:16px; color:#CC0000; font-family:Arial;float: left;"><font size="2" style="margin-left:10px;">我的积分：</font>${wechatMember.recommendScore }</span>
					<span style="font-size:12px; color: #EF0D0D; font-family:Arial;float: right;">【
						<c:if test="${empty config.exchangeNum || config.exchangeNum eq 0}">注：您的积分只能兑换以下一种奖品</c:if>
						<c:if test="${not empty config.exchangeNum && config.exchangeNum > 0 }">以下奖品仅限兑换${config.exchangeNum }个，不可重复兑换</c:if>
					】</span>
				</li>
			</ul>
		</div>
		<c:forEach items="${scoreExchangeList}" var="scoreEx">
			<form id="inputForm" action="${ctxFront}/expand/toScoreExchange" method="get">
				<input	type="hidden" name="scoreExchangeId" value="${scoreEx.id}" />
				<input type="hidden" name="uid" value="${uid }" /> 
				<input	type="hidden" name="wechatId" value="${wechatId }" />
				<section class="w-goods">
					<div class="w-gooa">
						<div class="img-wrapper">
							<img src="${ctxUser}/score/${scoreEx.showPic}" width="100px" height="100px" style="visibility: visible; " onerror="this.src=&#39;/zxims/static/images/zanwutupian.jpg&#39;">
						</div>
						<ul>
							<li class="title" style="width: inherit;">
								<span class="item-name">${scoreEx.name }</span>	
								<span class="item-name" style="font-size: 14px;color: #999;">
									<c:if test="${scoreEx.id eq 10}">价值120元</c:if>
								<c:if test="${scoreEx.id eq 9}">价值120元</c:if>
								<c:if test="${scoreEx.id eq 8}">价值120元</c:if>
								<c:if test="${scoreEx.id eq 7}">价值150元</c:if>
								<c:if test="${scoreEx.id eq 6}">价值480元</c:if>
								<c:if test="${scoreEx.id eq 5}">价值480元</c:if>
								<c:if test="${scoreEx.id eq 4}">价值600元</c:if>
								<c:if test="${scoreEx.id eq 3}">价值189元</c:if>
								<c:if test="${scoreEx.id eq 2}">价值719元</c:if>
								</span>	          
								<span class="item-name" style="font-size: 14px;color: #999;">剩余数量：${scoreEx.exchangeNumber }</span>		          
							</li>		         
							<li class="others">
								<ins>兑换积分：${scoreEx.score }</ins><br />
								<input class="message-btn" value="兑换" type="submit">
							</li>
						</ul>
					</div>
				</section>
			</form>
		</c:forEach>
	</div>
		<footer class="footer" style="bottom: 0px;"  onclick="location='http://www.hdzhx.com/me/microengine/index.html#page1'">
			<section class="w-goods" style="  padding-top: 10px;">
				<img src="${ctxStatic}/member/themes/expand/img/me.jpg" width="100px">		
			</section>
		</footer>
</div>
</body>
</html>